.class public Lcom/qq/xgdemo/common/ExtendedListView;
.super Landroid/widget/ListView;
.source "ExtendedListView.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/qq/xgdemo/common/ExtendedListView$OnPositionChangedListener;
    }
.end annotation


# instance fields
.field private final mHandler:Landroid/os/Handler;

.field private mHeightMeasureSpec:I

.field private mInAnimation:Landroid/view/animation/Animation;

.field private mLastPosition:I

.field private mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

.field private mOutAnimation:Landroid/view/animation/Animation;

.field private mPositionChangedListener:Lcom/qq/xgdemo/common/ExtendedListView$OnPositionChangedListener;

.field private mScrollBarPanel:Landroid/view/View;

.field private final mScrollBarPanelFadeRunnable:Ljava/lang/Runnable;

.field private mScrollBarPanelPosition:I

.field private mWidthMeasureSpec:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 58
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/qq/xgdemo/common/ExtendedListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 59
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 62
    const v0, 0x1010074

    invoke-direct {p0, p1, p2, v0}, Lcom/qq/xgdemo/common/ExtendedListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 63
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 8
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    const/4 v6, 0x0

    const/4 v7, -0x1

    const/4 v5, 0x0

    .line 66
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ListView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 28
    iput-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    .line 30
    iput-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    .line 31
    iput v6, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelPosition:I

    .line 34
    iput v7, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mLastPosition:I

    .line 36
    iput-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mInAnimation:Landroid/view/animation/Animation;

    .line 37
    iput-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOutAnimation:Landroid/view/animation/Animation;

    .line 39
    new-instance v5, Landroid/os/Handler;

    invoke-direct {v5}, Landroid/os/Handler;-><init>()V

    iput-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mHandler:Landroid/os/Handler;

    .line 41
    new-instance v5, Lcom/qq/xgdemo/common/ExtendedListView$1;

    invoke-direct {v5, p0}, Lcom/qq/xgdemo/common/ExtendedListView$1;-><init>(Lcom/qq/xgdemo/common/ExtendedListView;)V

    iput-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelFadeRunnable:Ljava/lang/Runnable;

    .line 68
    invoke-super {p0, p0}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 70
    sget-object v5, Lcom/example/zsccpsapp/R$styleable;->ExtendedListView:[I

    invoke-virtual {p1, p2, v5}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 71
    .local v0, "a":Landroid/content/res/TypedArray;
    invoke-virtual {v0, v6, v7}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v3

    .line 72
    .local v3, "scrollBarPanelLayoutId":I
    const/4 v5, 0x1

    const v6, 0x7f040006

    invoke-virtual {v0, v5, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v2

    .line 73
    .local v2, "scrollBarPanelInAnimation":I
    const/4 v5, 0x2

    const v6, 0x7f040009

    invoke-virtual {v0, v5, v6}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v4

    .line 74
    .local v4, "scrollBarPanelOutAnimation":I
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 76
    if-eq v3, v7, :cond_0

    .line 77
    invoke-virtual {p0, v3}, Lcom/qq/xgdemo/common/ExtendedListView;->setScrollBarPanel(I)V

    .line 80
    :cond_0
    invoke-static {}, Landroid/view/ViewConfiguration;->getScrollBarFadeDuration()I

    move-result v1

    .line 82
    .local v1, "scrollBarPanelFadeDuration":I
    if-lez v2, :cond_1

    .line 83
    invoke-virtual {p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-static {v5, v2}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v5

    iput-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mInAnimation:Landroid/view/animation/Animation;

    .line 86
    :cond_1
    if-lez v4, :cond_2

    .line 87
    invoke-virtual {p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-static {v5, v4}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v5

    iput-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOutAnimation:Landroid/view/animation/Animation;

    .line 88
    iget-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOutAnimation:Landroid/view/animation/Animation;

    int-to-long v6, v1

    invoke-virtual {v5, v6, v7}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 90
    iget-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOutAnimation:Landroid/view/animation/Animation;

    new-instance v6, Lcom/qq/xgdemo/common/ExtendedListView$2;

    invoke-direct {v6, p0}, Lcom/qq/xgdemo/common/ExtendedListView$2;-><init>(Lcom/qq/xgdemo/common/ExtendedListView;)V

    invoke-virtual {v5, v6}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 109
    :cond_2
    return-void
.end method

.method static synthetic access$0(Lcom/qq/xgdemo/common/ExtendedListView;)Landroid/view/animation/Animation;
    .locals 1

    .prologue
    .line 37
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOutAnimation:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic access$1(Lcom/qq/xgdemo/common/ExtendedListView;)Landroid/view/View;
    .locals 1

    .prologue
    .line 30
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    return-object v0
.end method


# virtual methods
.method protected awakenScrollBars(IZ)Z
    .locals 7
    .param p1, "startDelay"    # I
    .param p2, "invalidate"    # Z

    .prologue
    .line 208
    invoke-super {p0, p1, p2}, Landroid/widget/ListView;->awakenScrollBars(IZ)Z

    move-result v0

    .line 210
    .local v0, "isAnimationPlayed":Z
    if-eqz v0, :cond_1

    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    if-eqz v1, :cond_1

    .line 211
    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v1

    const/16 v2, 0x8

    if-ne v1, v2, :cond_0

    .line 212
    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 213
    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mInAnimation:Landroid/view/animation/Animation;

    if-eqz v1, :cond_0

    .line 214
    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    iget-object v2, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mInAnimation:Landroid/view/animation/Animation;

    invoke-virtual {v1, v2}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 218
    :cond_0
    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mHandler:Landroid/os/Handler;

    iget-object v2, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelFadeRunnable:Ljava/lang/Runnable;

    invoke-virtual {v1, v2}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 219
    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mHandler:Landroid/os/Handler;

    iget-object v2, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelFadeRunnable:Ljava/lang/Runnable;

    invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J

    move-result-wide v3

    int-to-long v5, p1

    add-long/2addr v3, v5

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->postAtTime(Ljava/lang/Runnable;J)Z

    .line 222
    :cond_1
    return v0
.end method

.method protected dispatchDraw(Landroid/graphics/Canvas;)V
    .locals 3
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 249
    invoke-super {p0, p1}, Landroid/widget/ListView;->dispatchDraw(Landroid/graphics/Canvas;)V

    .line 251
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    .line 252
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getDrawingTime()J

    move-result-wide v1

    invoke-virtual {p0, p1, v0, v1, v2}, Lcom/qq/xgdemo/common/ExtendedListView;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    .line 254
    :cond_0
    return-void
.end method

.method public getScrollBarPanel()Landroid/view/View;
    .locals 1

    .prologue
    .line 203
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    return-object v0
.end method

.method public onDetachedFromWindow()V
    .locals 2

    .prologue
    .line 258
    invoke-super {p0}, Landroid/widget/ListView;->onDetachedFromWindow()V

    .line 260
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelFadeRunnable:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 261
    return-void
.end method

.method protected onLayout(ZIIII)V
    .locals 6
    .param p1, "changed"    # Z
    .param p2, "left"    # I
    .param p3, "top"    # I
    .param p4, "right"    # I
    .param p5, "bottom"    # I

    .prologue
    .line 238
    invoke-super/range {p0 .. p5}, Landroid/widget/ListView;->onLayout(ZIIII)V

    .line 240
    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    if-eqz v1, :cond_0

    .line 241
    invoke-virtual {p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getMeasuredWidth()I

    move-result v1

    iget-object v2, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getVerticalScrollbarWidth()I

    move-result v2

    sub-int v0, v1, v2

    .line 242
    .local v0, "x":I
    iget-object v1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    iget v2, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelPosition:I

    iget-object v3, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredWidth()I

    move-result v3

    add-int/2addr v3, v0

    .line 243
    iget v4, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelPosition:I

    iget-object v5, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getMeasuredHeight()I

    move-result v5

    add-int/2addr v4, v5

    .line 242
    invoke-virtual {v1, v0, v2, v3, v4}, Landroid/view/View;->layout(IIII)V

    .line 245
    .end local v0    # "x":I
    :cond_0
    return-void
.end method

.method protected onMeasure(II)V
    .locals 1
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .prologue
    .line 227
    invoke-super {p0, p1, p2}, Landroid/widget/ListView;->onMeasure(II)V

    .line 229
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 230
    iput p1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mWidthMeasureSpec:I

    .line 231
    iput p2, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mHeightMeasureSpec:I

    .line 232
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {p0, v0, p1, p2}, Lcom/qq/xgdemo/common/ExtendedListView;->measureChild(Landroid/view/View;II)V

    .line 234
    :cond_0
    return-void
.end method

.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 17
    .param p1, "view"    # Landroid/widget/AbsListView;
    .param p2, "firstVisibleItem"    # I
    .param p3, "visibleItemCount"    # I
    .param p4, "totalItemCount"    # I

    .prologue
    .line 120
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mPositionChangedListener:Lcom/qq/xgdemo/common/ExtendedListView$OnPositionChangedListener;

    if-eqz v12, :cond_2

    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    if-eqz v12, :cond_2

    .line 123
    if-lez p4, :cond_2

    .line 127
    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getVerticalScrollbarWidth()I

    move-result v9

    .line 128
    .local v9, "thickness":I
    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getMeasuredHeight()I

    move-result v12

    int-to-float v12, v12

    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->computeVerticalScrollExtent()I

    move-result v13

    int-to-float v13, v13

    mul-float/2addr v12, v13

    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->computeVerticalScrollRange()I

    move-result v13

    int-to-float v13, v13

    div-float/2addr v12, v13

    invoke-static {v12}, Ljava/lang/Math;->round(F)I

    move-result v6

    .line 129
    .local v6, "height":I
    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getMeasuredHeight()I

    move-result v12

    sub-int/2addr v12, v6

    int-to-float v12, v12

    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->computeVerticalScrollOffset()I

    move-result v13

    int-to-float v13, v13

    mul-float/2addr v12, v13

    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->computeVerticalScrollRange()I

    move-result v13

    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->computeVerticalScrollExtent()I

    move-result v14

    sub-int/2addr v13, v14

    int-to-float v13, v13

    div-float/2addr v12, v13

    invoke-static {v12}, Ljava/lang/Math;->round(F)I

    move-result v10

    .line 130
    .local v10, "thumbOffset":I
    mul-int/lit8 v8, v9, 0x2

    .line 131
    .local v8, "minLength":I
    if-ge v6, v8, :cond_0

    .line 132
    move v6, v8

    .line 134
    :cond_0
    div-int/lit8 v12, v6, 0x2

    add-int/2addr v10, v12

    .line 139
    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getChildCount()I

    move-result v5

    .line 140
    .local v5, "count":I
    const/4 v7, 0x0

    .local v7, "i":I
    :goto_0
    if-lt v7, v5, :cond_4

    .line 171
    :cond_1
    :goto_1
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {v12}, Landroid/view/View;->getMeasuredHeight()I

    move-result v12

    div-int/lit8 v12, v12, 0x2

    sub-int v12, v10, v12

    move-object/from16 v0, p0

    iput v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelPosition:I

    .line 172
    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getMeasuredWidth()I

    move-result v12

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {v13}, Landroid/view/View;->getMeasuredWidth()I

    move-result v13

    sub-int/2addr v12, v13

    invoke-virtual/range {p0 .. p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getVerticalScrollbarWidth()I

    move-result v13

    sub-int v11, v12, v13

    .line 173
    .local v11, "x":I
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    move-object/from16 v0, p0

    iget v13, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelPosition:I

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    invoke-virtual {v14}, Landroid/view/View;->getMeasuredWidth()I

    move-result v14

    add-int/2addr v14, v11

    .line 174
    move-object/from16 v0, p0

    iget v15, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanelPosition:I

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Landroid/view/View;->getMeasuredHeight()I

    move-result v16

    add-int v15, v15, v16

    .line 173
    invoke-virtual {v12, v11, v13, v14, v15}, Landroid/view/View;->layout(IIII)V

    .line 178
    .end local v5    # "count":I
    .end local v6    # "height":I
    .end local v7    # "i":I
    .end local v8    # "minLength":I
    .end local v9    # "thickness":I
    .end local v10    # "thumbOffset":I
    .end local v11    # "x":I
    :cond_2
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    if-eqz v12, :cond_3

    .line 179
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    move-object/from16 v0, p1

    move/from16 v1, p2

    move/from16 v2, p3

    move/from16 v3, p4

    invoke-interface {v12, v0, v1, v2, v3}, Landroid/widget/AbsListView$OnScrollListener;->onScroll(Landroid/widget/AbsListView;III)V

    .line 181
    :cond_3
    return-void

    .line 141
    .restart local v5    # "count":I
    .restart local v6    # "height":I
    .restart local v7    # "i":I
    .restart local v8    # "minLength":I
    .restart local v9    # "thickness":I
    .restart local v10    # "thumbOffset":I
    :cond_4
    move-object/from16 v0, p0

    invoke-virtual {v0, v7}, Lcom/qq/xgdemo/common/ExtendedListView;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    .line 142
    .local v4, "childView":Landroid/view/View;
    if-eqz v4, :cond_5

    .line 143
    invoke-virtual {v4}, Landroid/view/View;->getTop()I

    move-result v12

    if-le v10, v12, :cond_5

    invoke-virtual {v4}, Landroid/view/View;->getBottom()I

    move-result v12

    if-ge v10, v12, :cond_5

    .line 147
    move-object/from16 v0, p0

    iget v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mLastPosition:I

    add-int v13, p2, v7

    if-eq v12, v13, :cond_1

    .line 148
    add-int v12, p2, v7

    move-object/from16 v0, p0

    iput v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mLastPosition:I

    .line 153
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mPositionChangedListener:Lcom/qq/xgdemo/common/ExtendedListView$OnPositionChangedListener;

    move-object/from16 v0, p0

    iget v13, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mLastPosition:I

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    move-object/from16 v0, p0

    invoke-interface {v12, v0, v13, v14}, Lcom/qq/xgdemo/common/ExtendedListView$OnPositionChangedListener;->onPositionChanged(Lcom/qq/xgdemo/common/ExtendedListView;ILandroid/view/View;)V

    .line 161
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    move-object/from16 v0, p0

    iget v13, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mWidthMeasureSpec:I

    move-object/from16 v0, p0

    iget v14, v0, Lcom/qq/xgdemo/common/ExtendedListView;->mHeightMeasureSpec:I

    move-object/from16 v0, p0

    invoke-virtual {v0, v12, v13, v14}, Lcom/qq/xgdemo/common/ExtendedListView;->measureChild(Landroid/view/View;II)V

    goto/16 :goto_1

    .line 140
    :cond_5
    add-int/lit8 v7, v7, 0x1

    goto/16 :goto_0
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 1
    .param p1, "view"    # Landroid/widget/AbsListView;
    .param p2, "scrollState"    # I

    .prologue
    .line 113
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    if-eqz v0, :cond_0

    .line 114
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    invoke-interface {v0, p1, p2}, Landroid/widget/AbsListView$OnScrollListener;->onScrollStateChanged(Landroid/widget/AbsListView;I)V

    .line 116
    :cond_0
    return-void
.end method

.method public setOnPositionChangedListener(Lcom/qq/xgdemo/common/ExtendedListView$OnPositionChangedListener;)V
    .locals 0
    .param p1, "onPositionChangedListener"    # Lcom/qq/xgdemo/common/ExtendedListView$OnPositionChangedListener;

    .prologue
    .line 184
    iput-object p1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mPositionChangedListener:Lcom/qq/xgdemo/common/ExtendedListView$OnPositionChangedListener;

    .line 185
    return-void
.end method

.method public setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V
    .locals 0
    .param p1, "onScrollListener"    # Landroid/widget/AbsListView$OnScrollListener;

    .prologue
    .line 189
    iput-object p1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    .line 190
    return-void
.end method

.method public setScrollBarPanel(I)V
    .locals 2
    .param p1, "resId"    # I

    .prologue
    .line 199
    invoke-virtual {p0}, Lcom/qq/xgdemo/common/ExtendedListView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, p1, p0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/qq/xgdemo/common/ExtendedListView;->setScrollBarPanel(Landroid/view/View;)V

    .line 200
    return-void
.end method

.method public setScrollBarPanel(Landroid/view/View;)V
    .locals 2
    .param p1, "scrollBarPanel"    # Landroid/view/View;

    .prologue
    .line 193
    iput-object p1, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    .line 194
    iget-object v0, p0, Lcom/qq/xgdemo/common/ExtendedListView;->mScrollBarPanel:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 195
    invoke-virtual {p0}, Lcom/qq/xgdemo/common/ExtendedListView;->requestLayout()V

    .line 196
    return-void
.end method
